package shop.ynubeggar.service;

import com.baomidou.mybatisplus.extension.service.IService;
import shop.ynubeggar.model.dataobject.ProductDO;
import shop.ynubeggar.model.valueobject.ProductVO;
import shop.ynubeggar.request.CreateProductRequest;
import shop.ynubeggar.request.UpdateProductRequest;

import java.util.Map;


public interface AdminProductService extends IService<ProductDO> {
    void createProduct(CreateProductRequest createProductRequest);

    void deleteProduct(long productId);

    Map<String, Object> findPage(int page, int size, int categoryId);

    ProductVO findOne(long productId, int categoryId);

    void updateOneProduct(long productId, UpdateProductRequest updateProductRequest);

    void updateProductStock(long productId, int stock_add_num);

    void updateOneProductImg(long id, String base64String);
}
